﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Optimization;

namespace GroceryPriceBook.Web
{
	public class BundleConfig
	{
		public static void RegisterBundles(BundleCollection bundles)
		{
			BundleTable.EnableOptimizations = false;

			bundles.Add(new StyleBundle("~/bundles/main/css").Include(
				"~/Content/Styles/Foundation/css/normalize.css",
				"~/Content/Styles/Foundation/css/foundation.css",
				"~/Content/Styles/Foundation/css/foundation.custom.css"));

			bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
				"~/Scripts/Misc/custom.modernizr.js"));

			bundles.Add(new ScriptBundle("~/bundles/main/js").Include(
				"~/Scripts/jQuery/jquery-{version}.js",
				"~/Scripts/jQuery/Plugins/jquery.cookie.js",
				"~/Scripts/jQuery/Plugins/jquery.unobtrusive-ajax.js",
				"~/Scripts/Misc/fastclick.js",
				"~/Scripts/Misc/placeholder.js",
				"~/Scripts/Foundation/foundation.js",
				"~/Scripts/foundation/Plugins/foundation.accordian.js",
				"~/Scripts/foundation/Plugins/foundation.alert.js",
				"~/Scripts/foundation/Plugins/foundation.clearing.js",
				"~/Scripts/foundation/Plugins/foundation.dropdown.js",
				"~/Scripts/foundation/Plugins/foundation.intercahnge.js",
				"~/Scripts/foundation/Plugins/foundation.joyride.js",
				"~/Scripts/foundation/Plugins/foundation.magellan.js",
				"~/Scripts/foundation/Plugins/foundation.offcanvas.js",
				"~/Scripts/foundation/Plugins/foundation.orbit.js",
				"~/Scripts/foundation/Plugins/foundation.reveal.js",
				"~/Scripts/foundation/Plugins/foundation.tab.js",
				"~/Scripts/foundation/Plugins/foundation.tooltip.js",
				"~/Scripts/foundation/Plugins/foundation.topbar.js"));

			bundles.Add(new ScriptBundle("~/bundles/form/js").Include(
				"~/Scripts/foundation/Plugins/foundation.abide.js",
				"~/Scripts/jQuery/Plugins/jquery.autocomplete.js",
				"~/Scripts/jQuery/Plugins/jquery.validate.js",
				"~/Scripts/jQuery/Plugins/jquery.validate.unobtrusive.js",
				"~/Scripts/jQuery/Plugins/jsrender.js",
				"~/Scripts/jQuery/Plugins/jsviews.js"));
		}
	}
}